package com.gaoyuzhe.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 自定义的LoadBalance
 * @author gaoyuzhe
 */
public interface LoadBalancer {
    /**
     * 获取负载实例
     * @param instanceList 当前可用实例集合
     * @return 负载选取的实例
     */
    ServiceInstance getLoadBalanceInstance(List<ServiceInstance> instanceList);
}
